package www.lagou.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Account implements Serializable {
    //id
    private int id;
    //用户姓名
    private String userName;
    //卡号
    private String card;
    //当前余额
    private double balance;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "账户信息{" +
                "id=" + id +
                ", 姓名='" + userName + '\'' +
                ", 卡号='" + card + '\'' +
                ", 账户余额=" + balance +
                '}';
    }
}
